package bookstore.repository.reserve;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import bookstore.domain.reserve.BookReserve;

@Repository
public interface BookReserveRepository extends PagingAndSortingRepository<BookReserve, String> {

    Page<BookReserve> findByUserId(@Param("id") Long id, Pageable p);
}
